package com.xiaohudie.thread;

/**
 * @Author xiao hu die
 * @Date 2022/2/20 15:35
 * @Version 1.0
 */
public class Test02 {
    public static void main(String[] args) {
        Thread thread = new Thread(new Thread2());
        thread.start();
        for (int i = 0; i <5 ; i++) {
            System.out.println("线程名字:"+Thread.currentThread().getName());
        }
    }

}
